<!--****************************************************-->
<!--*    页面内容：  采购完成度查询                         *-->
<!--*    作者：徐一贺                                     *-->
<!--*    编程日期：2020年8月22日13:38:25                  *-->
<!--*    创建版本：v 1.0                                 *-->
<!--====================================================-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="include :: header"></head>
<title>采购完成度查询</title>
<style>
    .fixed-table-container tbody .selected td {
        background-color: #0073B7 !important;
        color: #ffffff !important;
    }
</style>
<body class="hold-transition skin-blue sidebar-mini">
<section class="content-header"><h1>采购完成度查询</h1></section>
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <form id="queryForm" onsubmit="return false;">
                        <div class="row">
                            <div class="form-inline">
                                <div class="form-group">
                                    <label>项目编号</label>
                                    <input type="text" name="rppProjectCode" class="form-control" placeholder="请输入项目编号">
                                </div>
                                <div class="form-group">
                                    <label>项目名称</label>
                                    <input type="text" name="rppProjectName" class="form-control" placeholder="请输入项目名称">
                                </div>
                                <div class="form-group">
                                    <label>物料描述</label>
                                    <input type="text" name="rppMatDesc" class="form-control" placeholder="请输入提报或采购物料">
                                </div>
                                <div class="form-group">
                                    <label>计划号</label>
                                    <input type="text" name="rppPlanNo" class="form-control" placeholder="请输入SAP物料编码">
                                </div>
                                <div class="form-group">
                                    <label>SAP物料编码</label>
                                    <input type="text" name="rppMatCode" class="form-control" placeholder="请输入SAP物料编码">
                                </div>
                                <div class="form-group">
                                    <label>提报人</label>
                                    <input type="text" name="rppDesigner" class="form-control" placeholder="请输入SAP物料编码">
                                </div>
                                <div class="form-group">
                                    <label class="control-label">采购分类</label>
                                    <select class="form-control" name="rppTypes" title="">
                                        <option value="">全部</option>
                                        <option value="外购件">外购件</option>
                                        <option value="原材料">原材料</option>
                                        <option value="外协件">外协件</option>
                                    </select>
                                </div>

                                <div class="form-group">
                                    <label>提报日期</label>
                                    <input type="text" class="form-control datepicker" name="startTime"
                                           readonly="readonly"/>
                                    <span> 至 </span>
                                    <input type="text" class="form-control datepicker" name="endTime"
                                           readonly="readonly"/>
                                </div>
                                <button type="button" class="btn btn-success" id="btn-search">
                                    <span class="Bold">搜索</span>
                                </button>

                            </div>
                        </div>
                    </form>
                </div>
                <div class="box-body">
                    <table id="bootstrap-table"></table>
                </div>
            </div>
        </div>
    </div>
</section>
<div th:include="include :: footer"></div>
<script th:inline="javascript">

    var table;
    var statusName = ["未审阅", "已审阅"];
    var colors = ['label-default', 'label-success'];


    $(function () {
        $("title").html($("title").html()+" —— 采购完成度查询");

        /** 加载用户表格 */
        table = js.table.init({
            url: ctx + "buy/purchaseCompletionQuery/list",
            showExport: false,
            showColumns: false,
            showRefresh: true,
            clickToSelect: true,
            onLoadSuccess: function (data) {

            },
            columns: [
                {
                    title: '序号', width: '50px',
                    formatter: function (value, row, index, field) {
                        return index + 1;
                    }
                },
                {
                    title: "项目编号", field: 'rppProjectName',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "类型", field: 'rppTypes',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "计划号", field: 'rppPlanNo',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "部分", field: 'rppPart',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "物料描述", field: 'rppMatDesc',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "提报数量", field: 'rppNum',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "单位", field: 'rppUnit',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "型号/标准号", field: 'rppStandardNo',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "图号", field: 'rppDiagram',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "品牌", field: 'rppBrand',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "提报人", field: 'rppDesigner', width: '70',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "计划员", field: 'rppPlanner', width: '70',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "采购数量", field: 'sppNum',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "使用库存数量", field: 'useStockNum',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },
                {
                    title: "暂缓数量", field: 'postponeNum',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                },

                {
                    title: "遗漏数量",
                    field: 'omissionNum',
                    formatter: function (value, row, index, field) {
                        return value;
                    }
                }
            ]
        });

        /** 表格搜索 */
        $("#btn-search").click(function () {
            js.table.search(table);
        });


    });

</script>
</body>
</html>
